package com.main.taxsystem;

public class TableInfoSet {
	public static class PersonalNoticesTableInfo implements TableInfo{
		public static final String TABLE_NAME = "PersonalNoticesTable";
		public static final String COLUMEN_NAME_NOTATION_ID = "notationId";
		public static final String COLUMEN_NAME_NOTATION_TITLE = "notationTitle";
		public static final String COLUMEN_NAME_CREATE_TIME = "createTime";
		public static final String COLUMEN_NAME_UNREAD = "unread";
		public static final String COLUMEN_NAME_SOURCE ="source";
		public static final String COLUMEN_NAME_CONTENT = "content";
		private static final String[] COLUMNS = new String[]{
			COLUMEN_NAME_NOTATION_ID,
			COLUMEN_NAME_NOTATION_TITLE,
			COLUMEN_NAME_CREATE_TIME,
			COLUMEN_NAME_UNREAD,
			COLUMEN_NAME_SOURCE,
			COLUMEN_NAME_CONTENT
		};
		static private PersonalNoticesTableInfo instance= new PersonalNoticesTableInfo();
		
		private PersonalNoticesTableInfo() {
		}

		@Override
		public String getTableName() {
			return TABLE_NAME;
		}

		@Override
		public String[] getColumns() {
			return COLUMNS;
		}
		
		public static TableInfo getInstance(){
			return instance;
		}
	}
	public static class AlreadyAnswerQuestionTableInfo implements TableInfo{
		public static final String TABLE_NAME = "alreadyanswer_question";
		public static final String COLUMN_NAME_QUESTION_ID = "questionId";
		public static final String COLUMN_NAME_QUESTION_TITLE = "questionTitle";
		public static final String COLUMN_NAME_CREATE_TIME = "createtime";
		public static final String COLUMN_NAME_ANSWER_CONTENT	 = "answerContent";
		public static final String[] COLUMNS = {
			COLUMN_NAME_QUESTION_ID,
			COLUMN_NAME_QUESTION_TITLE,
			COLUMN_NAME_CREATE_TIME,
			COLUMN_NAME_ANSWER_CONTENT
		};
		private AlreadyAnswerQuestionTableInfo(){}
		private static AlreadyAnswerQuestionTableInfo instance = new AlreadyAnswerQuestionTableInfo();
		
		public static TableInfo getInstance() {
			return instance;
		}

		@Override
		public String getTableName() {
			return TABLE_NAME;
		}

		@Override
		public String[] getColumns() {
			return COLUMNS;
		}
		
	}
	public static class MyQestionTableInfo implements TableInfo{
		public static final String TABLE_NAME = "myquestion";
		public static final String COLUMN_NAME_QUESTION_ID = "questionId";
		public static final String COLUMN_NAME_QUESTION_TITLE = "questionTitle";
		public static final String COLUMN_NAME_CREATE_TIME = "createtime";
		public static final String COLUMN_NAME_ANSWER_COUNT = "answerCount";
		public static final String COLUMN_NAME_UNREAD = "unread";
		public static final String[] COLUMNS ={
			COLUMN_NAME_QUESTION_ID,
			COLUMN_NAME_QUESTION_TITLE,
			COLUMN_NAME_CREATE_TIME,
			COLUMN_NAME_ANSWER_COUNT,
			COLUMN_NAME_UNREAD
		};
		private static MyQestionTableInfo instance = new MyQestionTableInfo();
		
		private MyQestionTableInfo(){}
		public static TableInfo getInstance() {
			return instance;
		}
		
		@Override
		public String getTableName() {
			return TABLE_NAME;
		}

		@Override
		public String[] getColumns() {
			return COLUMNS;
		}
		
	}
	public static class BranchMapTableInfo implements TableInfo{
		public static final String TABLE_NAME = "branch_map";
		public static final String COLUMN_NAME_BRANCH_ID  ="branchId";
		public static final String COLUMN_NAME_BRANCH_NAME = "address";
		public static final String COLUMN_NAME_ADDRESS = "branch_address";
		public static final String COLUMN_NAME_LONGITUDE = "longitude";
		public static final String COLUMN_NAME_LATITUDE ="latitude";
		public static final String COLUMN_NAME_DISTANCE = "distance";
		public static final String[] COLUMNS = {
			COLUMN_NAME_BRANCH_ID,
			COLUMN_NAME_BRANCH_NAME,
			COLUMN_NAME_ADDRESS,
			COLUMN_NAME_LONGITUDE,
			COLUMN_NAME_LATITUDE,
			COLUMN_NAME_DISTANCE
		};
		private static BranchMapTableInfo instance = new BranchMapTableInfo();
		private BranchMapTableInfo(){}
		public static TableInfo getInstance() {
			return instance;
		}
		@Override
		public String getTableName() {
			return TABLE_NAME;
		}

		@Override
		public String[] getColumns() {
			return COLUMNS;
		}
	}
	public static class TestDataTableInfo implements TableInfo{
		public static final String TABLE_NAME = "testData";
		public static final String COLUMN_NAME_ID = "id";
		public static final String COLUMN_NAME_TITLE = "title";
		public static final String COLUMN_NAME_CONTENT = "content";
		public static final String COLUMN_NAME_CREATE_TIME = "createTime";
		public static final String[] COLUMNS ={
			COLUMN_NAME_ID,
			COLUMN_NAME_TITLE,
			COLUMN_NAME_CREATE_TIME,
			COLUMN_NAME_CONTENT
		};
		
		private static TestDataTableInfo instance = new TestDataTableInfo();
		private TestDataTableInfo(){}
		public static TableInfo getInstance() {
			return instance;
		}
		@Override
		public String getTableName() {
			return TABLE_NAME;
		}

		@Override
		public String[] getColumns() {
			return COLUMNS;
		}
	}
}
